<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        a {
            width: 150px;
            height: 120px;
            background: #531522;
            /* 把行内元素转换为块元素 */
            display: block;
        }

        div {
            width: 500px;
            height: 300px;
            background-color: pink;
            /* 将块元素转换为行元素，也就是可以一行放多个块元素 */
            display: inline;
        }

        span {
            width: 100px;
            height: 50px;
            display: inline-block;
            background-color: #225;
        }
    </style>
</head>

<body>
    <a href="#">lalala </a>
    <div>块元素转化为行内元素</div>
    <div>块元素转化为行内元素</div>
    <span>转换为行内块元素</span>
    <span>转换为行内块元素</span>
</body>

</html>